package com.demo.service.serviceImpl;

import com.demo.dao.SysManagersWrongLoginHistoryDao;
import com.demo.model.SysManagersWrongLoginHistory;
import com.demo.service.SysManagersWrongLoginHistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysManagersWrongLoginHistoryServiceImpl implements SysManagersWrongLoginHistoryService {
    @Resource
    private SysManagersWrongLoginHistoryDao dao;


    @Override
    public void save_new_wrong_by_loginname(SysManagersWrongLoginHistory wrong_his) {
        dao.save_new_wrong_by_loginname(wrong_his);
    }

    @Override
    public List<SysManagersWrongLoginHistory> find_wrong_by_loginname(String loginname) {
        return dao.find_wrong_by_loginname(loginname);
    }

    @Override
    public void update_new_wrong_by_loginname(SysManagersWrongLoginHistory wrong_his) {
        dao.update_new_wrong_by_loginname(wrong_his);
    }

    @Override
    public void change_new_wrong_by_loginname(SysManagersWrongLoginHistory wrong_his) {
        dao.change_new_wrong_by_loginname(wrong_his);
    }
}
